#!/usr/bin/env python3
power = 1
for i in range(365):
    val = i % 7
    if val == 5 or val == 6:
        power *= 0.999
    else:
        power *= 1.001

print(power)
